package com.lry.sso.service.service.impl;

import java.util.List;

import com.lry.sso.data.pojo.SysPermission;
import com.lry.sso.data.dao.SysPermissionMapper;
import com.lry.sso.service.service.PermissionService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 权限接口实现
 *
 * @author 李瑞益
 * @date 2019/11/16
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> listByRoleId(List<Integer> roleId) {
        return sysPermissionMapper.listByRoleId(roleId);
    }
}
